package com.itheima.health.utils.demo;

import java.util.Timer;
import java.util.TimerTask;

/**
 * @description:
 * @author: YHL
 * @time: 2021/1/15 9:48 上午
 */

public class TimeDemo {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("---清理图片");
            }
        },5000,2000);
    }
}
